﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ServerAdapter;

namespace GeebaClient
{
    public class InitConosleClient : ClientListener
    {
        #region DataMembers

        private ServerAdapter.SAdapter server;

        #endregion

        #region Cstor

        public InitConosleClient()
        {
            server = new ServerAdapter.SAdapter(this);
        }

        #endregion

        #region Methods
        public void run()
        {
            Console.WriteLine("Geeba Forum: Initialize Forum");
            Console.WriteLine("------------------------------");
            Console.WriteLine("Insert Admin username:");
            string admin = Console.ReadLine();
            Console.WriteLine("Insert Admin password:");
            string adminPass = Console.ReadLine();   
            server.serverInit(admin, adminPass, null);
            
        }

        /// <summary>
        /// 1. entry
        /// </summary>
        public void entry()
        {
            Console.WriteLine("Welcome to Geeba Forum, " + DateTime.Now);
        }
        #endregion
    }
}
